﻿@model Forest.Cat.Admin.Models.Homes.IndexListModel
@{
    ViewBag.Title = "职位推荐";
}
<div class="backend_content_center">
    @{Html.RenderAction("PersonInfo", "Home");}
    <div class="job_intro">
        <div class="savedsearch_manage_right_title">
            @ViewBag.Title</div>
        <table id='Listtable' cellpadding="0" cellspacing="0">
            @foreach (var job in Model.IndexList)
            { 
                <tr>
                    <td>
                        <div class="Job_detail02">
                            <div class="Job_detail_text02">
                                <div class="Job_detail_textTop">
                                    <div class="jobName02">
                                        @Html.ActionLink(job.JobTitle.Length > 12 ? job.JobTitle.Substring(0, 12) + "..." : job.JobTitle, "JobView", "Catalog", new { area = "", id = job.Id }, new { @title = job.JobTitle })</div>
                                    <div class="jobCompany02">
                                        @if (job.CompanyId.HasValue)
                                        {
                                            @Html.ActionLink(job.CompanyName.Length > 12 ? job.CompanyName.Substring(0, 12) : job.CompanyName,
                                                     "CompanyView", "Company", new { area = "", id = job.CompanyId.Value }, new { @title = job.CompanyName })}</div>
                                    <div class="job_address02">
                                        @job.CityName
                                        @*@(!String.IsNullOrWhiteSpace(job.DistrictName) ? " - " + job.DistrictName : String.Empty)*@
                                    </div>
                                    <div class="quick_apply">
                                        @if (!job.IsApplied)
                                        {
                                            @Html.ActionLink(" ", "Apply", "JobApplication", new { area = "", id = job.Id, returnUrl = Request.Url.PathAndQuery }, new { @onclick = "return checkLogin();", @title = "立即申请" })
                                        }
                                        else
                                        { 
                                            <a href="#">已申请</a>
                                        }
                                    </div>
                                    <div class="cl">
                                    </div>
                                </div>
                                <h5>
                                    @job.EducationLevelName ，@job.YearsOfExperienceName</h5>
                                <p>@Html.Raw(Forest.Core.Html.HtmlHelper.ConvertPlainTextToHtml(job.Responsibilities.Length > 100 ? job.Responsibilities.Substring(0, 100) + "..." : job.Responsibilities))</p>
                            </div>
                            @*                    <div class="Job_detail_btn">
                        <div class="btn_apply">
                            @if (!job.IsApplied)
                            {
                                @Html.ActionLink("立即申请", "Apply", "JobApplication", new { id = job.Id, returnUrl = Request.Url.PathAndQuery }, new { @onclick = "return checkLogin();" })
                            }
                            else
                            { 
                                <a href="#">已申请</a>
                            }
                        </div>
                    </div>*@
                            <div class="cr">
                            </div>
                        </div>
                    </td>
                </tr>
            }
        </table>
    </div>
</div>
